/**
 * 
 */
package com.surelution.lansao.wxmp

import com.surelution.whistle.core.Attribute

/**
 * @author <a href="mailto:guangzong.syu@gmail.com">Guangzong</a>
 *
 */
class OrderHistoryAction extends BaseLansaoAction {

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#accept()
	 */
	@Override
	public boolean accept() {
		return getParam(Attribute.KEY_MsgType) == "text" && getParam(Attribute.KEY_Content) == "3"
	}

	/* (non-Javadoc)
	 * @see com.surelution.whistle.core.BaseAction#execute()
	 */
	@Override
	public void execute() {
		put(new Attribute(Attribute.KEY_Content, """<a href="http://${partner.domainName}${com.surelution.lansao.Const.CONTEXT_PATH}">请触摸我查看以往订单</a>"""))
	}

}
